#!/bin/bash

mkdir -p /etc/goodrain/envs/
grep "MANAGE" /etc/goodrain/envs/ip.sh >/dev/null 2>&1
[ -f "/etc/goodrain/envs/rainbond-node.sh" ] && echo "" > /etc/goodrain/envs/rainbond-node.sh
if [ $? -eq 0 ];then
    echo "NODE_TYPE=compute" >> /etc/goodrain/envs/rainbond-node.sh
else
    echo "NODE_TYPE=" >> /etc/goodrain/envs/rainbond-node.sh
fi

echo "pre install rainbond-node"